
package org.darcy.entity.business;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import org.darcy.entity.work.WorkFlowObject;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

@Schema(description="BusinessFinancialReceived: 合同收款")
@TableName(value = "business_financial_received")
@Getter
@Setter
public class BusinessFinancialReceived extends WorkFlowObject  implements Serializable{
	
	private static final long serialVersionUID = 1L;
	
	@Schema(description="合同id")
	@TableField(value = "`contract_id`")
	private Integer contractId;
	
	@Schema(description="所属业务")
	@TableField(value = "`business_type`")
	private String businessType;
	
	@Schema(description="收款时间")
	@TableField(value = "`pay_time`")
	private Date payTime;
	
	@Schema(description="收款方式")
	@TableField(value = "`pay_type`")
	private String payType;
	
	@Schema(description="收款金额")
	@TableField(value = "`pay_amount`")
	private Float payAmount;
	
	@Schema(description="收款明细")
	@TableField(value = "`pay_detail`")
	private String payDetail;
	
	@Schema(description="收款附件")
	@TableField(value = "`pay_file`")
	private String payFile;
	
	@Schema(description="备注")
	@TableField(value = "`pay_remark`")
	private String payRemark;
	
	@Schema(description="开票状态，0：未开票；1：已开票")
	@TableField(value = "`bill_status`")
	private Integer billStatus;
	
	@Schema(description="创建时间")
	@TableField(value = "`create_time`")
	private Date createTime;
	
	@Schema(description="更新时间")
	@TableField(value = "`update_time`")
	private Date updateTime;
	
	@Schema(description="删除标识0：删除；1：存在")
	@TableField(value = "`del_flag`")
	private Integer delFlag;
	

	//扩展信息
	
	@Schema(description = "合同信息")
	@TableField(exist = false)
	private BusinessContract contract;
	
	@Schema(description="收款附件")
	@TableField(exist = false)
	private List<String> payFileList;
	
	@Schema(description = "关联合同收款详情")
	@TableField(exist = false)
	private String detail;

}
